#include <stdio.h>

int main()
{
	char *p1;
	p1 = (char *)malloc(sizeof(char) * 10);
	memcpy(p1, "hello", 10);
	printf("P1 address:%x, %s\n", p1, p1);
	free(p1);
	char *p2;
	p2 = (char *)malloc(sizeof(char) * 10);
	memcpy(p2, "hello", 10);
	printf("P2 address:%x, %s\n", p2, p2);
	memcpy(p1, "hack!", 10);
	printf("P2 address:%x, %s\n", p2, p2);
	return 0;
}



